package com.itheima.ui;

import com.hzheima.game.GameJFrame;
import com.hzheima.util.ImageUtil;
import com.itheima.config.AppConfig;

import java.awt.*;
import java.awt.image.BufferedImage;

public class BallFightFrame extends GameJFrame {
    public BallFightFrame() throws HeadlessException {
        //标题
        setTitle("球球大作战");
        //图标
        //BufferedImage img = ImageUtil.getImg("logo.png");
        setIconImage(ImageUtil.getImg("logo.png"));
        //设置窗口大小
        setSize(AppConfig.APP_WIDTH, AppConfig.APP_HEIGHT);
        //设置初始位置
        setLocation(750, 150);
    }
}
